<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar showPerson :datas="{formData:form}" psTagType="PERSON_PENSION_QUERY" personType="PERSON_ALL_EXACT">
            </epl-top-bar>
            <epl-userMessage dataType="person" idCount = "6">
                <template slot-scope="scope">
                    <epl-userMessageItem title="当前核定养老金" :sum="form.aic169.value">
                        <epl-column label="补发总月数" :value="form.bac062.value"></epl-column>
                        <epl-column label="补发总金额" :value="'￥'+form.bac063.value"></epl-column>
                    </epl-userMessageItem>
                </template>
            </epl-userMessage>
            <el-card class="ep-card">
                <ep-title>请输入离退休基本信息</ep-title>
                <el-form :model="form" ref="form" :rules="rules">
                    <el-row :gutter="10">
                        <ep-date colspan="8" label="待遇开始年月" name="aic160" :property="form.aic160" p="R" format="yyyyMM" value-format="yyyyMM"
                                 :datas="{formData:form}" placeholder="请输入待遇开始年月" rules="this.$rules.test_noBlank"></ep-date>
                        <ep-select colspan="8" label="管理形式" name="aae146" :property="form.aae146" codetype="AAE146"
                                   p="R"  :datas="{formData:form}" placeholder="请输入管理形式" rules="this.$rules.test_noBlank"></ep-select>
                        <ep-dateYMD label="累计缴费年限" type="YY-MM" colspan="8" name="ljnx" :property="form.ljnx" p="D"
                                    :datas="{formData: form}"></ep-dateYMD>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="发放途径" name="aae145" :property="form.aae160" codetype="AAE145"
                                   p="R"  :datas="{formData:form}" placeholder="请输入发放途径" rules="this.$rules.test_noBlank"></ep-select>
                        <ep-dateYMD label="实际缴费年限" type="YY-MM" colspan="8" name="aae201" :property="form.aae201" p="D"
                                    :datas="{formData: form}"></ep-dateYMD>
                        <ep-dateYMD label="视同缴费年限" type="YY-MM" colspan="8" name="aae200" :property="form.aae200" p="D"
                                    :datas="{formData: form}"></ep-dateYMD>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-input colspan="8" label="账户总金额" name="aic165" :property="form.aae165"
                                  p="D"  :datas="{formData:form}"></ep-input>
                        <ep-dateYMD label="合同制或事业缴费" type="YY-MM" colspan="8" name="aae201" :property="form.aae201" p="D"
                                    :datas="{formData: form}"></ep-dateYMD>
                        <ep-dateYMD label="中断缴费年限" type="YY-MM" colspan="8" name="zdjf" :property="form.aae200" p="D"
                                    :datas="{formData: form}"></ep-dateYMD>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-input colspan="8" label="个人部分比例" name="aic167" :property="form.aic167" p="D"
                                  :datas="{formData:form}" ></ep-input>
                        <ep-input colspan="8" label="养老金占比例" name="aic166" :property="form.aic166" p="D"
                                  :datas="{formData:form}" ></ep-input>
                        <ep-select colspan="8" label="发放丧葬抚恤金标识" name="bic119" :property="form.bic119" codetype="BIC119"
                                   p="R"  :datas="{formData:form}" placeholder="请输入发放丧葬抚恤金标识" rules="this.$rules.test_noBlank"></ep-select>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="补扣发放途径" name="bic121" :property="form.bic121" codetype="BIC121"
                                   p="R"  :datas="{formData:form}" placeholder="请输入补扣发放途径" rules="this.$rules.test_noBlank"></ep-select>
                        <ep-select colspan="8" label="待遇调整标识" name="bic120" :property="form.bic120" codetype="BIC120"
                                   p="R"  :datas="{formData:form}" placeholder="请输入待遇调整标识" rules="this.$rules.test_noBlank"></ep-select>
                        <ep-input colspan="8" label="享受最低基本养老金" name="bic126" :property="form.bic126" p="D"
                                  :datas="{formData:form}"></ep-input>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-input colspan="8" label="行业档案养老金" name="bic122" :property="form.bic122" p="R"
                                  :datas="{formData:form}" placeholder="请输入行业档案养老金" rules="this.$rules.test_noBlank"></ep-input>
                        <ep-input colspan="8" label="06年调整额" name="bic123" :property="form.bic123" p="R"
                                  :datas="{formData:form}" placeholder="请输入06年调整额" rules="this.$rules.test_noBlank"></ep-input>
                        <ep-input colspan="8" label="浮动物价补贴" name="bic124" :property="form.bic124" p="R"
                                  :datas="{formData:form}" placeholder="请输入浮动物价补贴" rules="this.$rules.test_noBlank"></ep-input>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-input colspan="8" label="山区海岛补贴" name="bic125" :property="form.bic125" p="R"
                                  :datas="{formData:form}" placeholder="请输入山区海岛补贴" rules="this.$rules.test_noBlank"></ep-input>
                        <ep-input colspan="8" label="邮政编码" name="aae007" :property="form.aae007" p="R"
                                  :datas="{formData:form}" placeholder="请输入邮政编码" rules="this.$rules.test_noBlank"></ep-input>
                        <ep-input colspan="8" label="邮政地址" name="bic127" :property="form.bic127" p="R"
                                  :datas="{formData:form}" placeholder="请输入邮政地址" rules="this.$rules.test_noBlank"></ep-input>
                    </el-row>
                    <ep-title>请输入联系人信息</ep-title>
                    <el-row :gutter="10">
                        <ep-input colspan="8" label="联系人姓名" name="aae004" :property="form.aae004" p="R"
                                  :datas="{formData:form}" placeholder="请输入联系人姓名" rules="this.$rules.test_noBlank"></ep-input>
                        <ep-input colspan="8" label="联系电话" name="aae005" :property="form.aae005" p="R"
                                  :datas="{formData:form}" placeholder="请输入联系电话" rules="this.$rules.test_noBlank"></ep-input>
                        <ep-input colspan="8" label="联系地址" name="aae006" :property="form.aae006" p="R"
                                  :datas="{formData:form}" placeholder="请输入联系地址" rules="this.$rules.test_noBlank"></ep-input>
                    </el-row>
                    <ep-title>请输入发放信息</ep-title>
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="支付方式" name="aae145" :property="form.aae145" codetype="AAE145"
                                   p="R"  :datas="{formData:form}" placeholder="请输入支付方式" rules="this.$rules.test_noBlank"></ep-select>
                        <ep-select colspan="8" label="发放银行" name="aaz065" :property="form.aaz065" codetype="AAZ065"
                                   p="R"  :datas="{formData:form}" placeholder="请输入发放银行" rules="this.$rules.test_noBlank"></ep-select>
                        <ep-input colspan="8" label="银行账号" name="aae010" :property="form.aae010" p="R"
                                  :datas="{formData:form}" placeholder="请输入银行账号" rules="this.$rules.test_noBlank"></ep-input>
                    </el-row>
                    <el-row :gutter="10">
                        <epl-search-bank colspan="8" label="开户行行号" name="aaf002" :property="form.aaf002" placeholder="请选择开户行行号"
                                         p="R" :datas="{formData: form}" codetype="AAZ065" bankName="aaz065" show rules="this.$rules.test_noBlank"></epl-search-bank>
                        <ep-input colspan="8" label="银行户名" name="aae010" :property="form.aae010" p="R"
                                  :datas="{formData:form}" placeholder="请输入银行户名" rules="this.$rules.test_noBlank"></ep-input>

                    </el-row>
                    <el-row :gutter="10">
                        <ep-input colspan="16" label="开户银行名称" name="bac049" :property="form.bac049" p="R"
                                  :datas="{formData:form}" placeholder="请输入开户银行名称" rules="this.$rules.test_noBlank"></ep-input>
                    </el-row>
                    <el-row type="flex" justify="center">
                        <ep-button id="cal" api="doQuery" type="primary" top="20" bottom="20"
                                   :datas="{formData: form,panel:panel,tableData1:tableData1}"
                                   name="计算"></ep-button>
                        <ep-saveButton id="doSave" type="primary" top="20" bottom="20" ref="save" @formValidate="formValidate"
                                       :validate="['form']"
                                       :datas="{formData: form,panel:panel,tableData1:tableData1,tableData2:tableData2,tableData3:tableData3,tableData4:tableData4,tableData5:tableData5,tableData6:tableData6}"></ep-saveButton>
                    </el-row>
                </el-form>
                <el-tabs v-model="activeName2"  type="card">
                    <el-tab-pane label="离退休人员待遇信息" name="1">
                        <ep-table :data="tableData1" :pager="50">
                            <ep-table-column editor="text" name="aaa036" header="待遇项目"></ep-table-column>
                            <ep-table-column editor="text" name="aaa037" header="待遇项目名称"></ep-table-column>
                            <ep-table-column editor="text" name="aae041" header="享受开始年月"></ep-table-column>
                            <ep-table-column editor="text" name="aae042" header="享受结束年月"></ep-table-column>
                            <ep-table-column editor="text" name="eia008" header="养老待遇金额"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                    <el-tab-pane label="待遇计算标准与比对过程" name="third" >
                        <el-form :model="form" :rules="rules">
                            <ep-title>新办法计算待遇信息</ep-title>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="基础养老金" name="xbfylj" :property="form.xbfylj" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="16" label="计算依据" name="xbfa1" :property="form.xbfa1" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="个人账户养老金" name="xbfgrylj" :property="form.xbfgrylj" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="16" label="计算依据" name="xbfa2" :property="form.xbfa2" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="过渡性养老金" name="xbfgdylj" :property="form.xbfgdylj" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="16" label="计算依据" name="xbfa3" :property="form.xbfa3" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="24" label="月基本养老金" name="xbfyylj" :property="form.xbfyylj" p="D"
                                          :datas="{formData:form}" ></ep-input>
                            </el-row>
                            <ep-title>老办法计算待遇信息</ep-title>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="基础养老金" name="lbfylj" :property="form.lbfylj" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="16" label="计算依据" name="lbfa1" :property="form.lbfa1" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="个人账户养老金" name="lbfgrylj" :property="form.lbfgrylj" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="16" label="计算依据" name="lbfa2" :property="form.lbfa2" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="过渡性养老金" name="lbfgdylj" :property="form.lbfgdylj" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="16" label="计算依据" name="lbfa3" :property="form.lbfa3" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="24" label="月基本养老金" name="lbfyylj" :property="form.lbfyylj" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>


                            <ep-title>新老对比实际计发</ep-title>

                            <el-row :gutter="10">
                                <ep-input colspan="8" label="新老对比后养老金" name="xlbdylj" :property="form.xlbdylj" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="16" label="计算依据" name="xlbda1" :property="form.xlbda1" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="过渡性调节金" name="xlbdtjj" :property="form.xlbdtjj" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="16" label="计算依据" name="xlbda2" :property="form.xlbda2" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="月应发基本养老金" name="xlbdyfylj" :property="form.xlbdyfylj" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="16" label="计算依据" name="xlbda3" :property="form.xlbda3" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="当年最低养老金待遇水平" name="dnzdylj" :property="form.dnzdylj" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="16" label="计算依据" name="xlbda3" :property="form.dnzda1" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="月核定基本养老金" name="yhdylj" :property="form.yhdylj" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="16" label="计算依据" name="xlbda3" :property="form.yhda2" p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                        </el-form>
                    </el-tab-pane>
                    <el-tab-pane label="工资指数信息" name="2">
                        <ep-table :data="tableData2" :pager="20">
                            <ep-table-column editor="text" name="aae100" header="年度"></ep-table-column>
                            <ep-table-column editor="text" name="aae180" header="缴费基数"></ep-table-column>
                            <ep-table-column editor="text" name="aaa016" header="上年省社平"></ep-table-column>
                            <ep-table-column editor="text" name="aae201" header="缴费月数"></ep-table-column>
                            <ep-table-column editor="text" name="aic164" header="缴费指数"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                    <el-tab-pane label="养老账户信息" name="3">
                        <ep-table :data="tableData3" :pager="20">
                            <ep-table-column editor="text" header="待遇变更类型" name="aaa099"></ep-table-column>
                            <ep-table-column editor="text" header="变更年月" name="aae041"></ep-table-column>
                            <ep-table-column editor="text" header="变更原因" name="aae160"></ep-table-column>
                            <ep-table-column editor="text" header="经办时间" name="aae036"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                    <el-tab-pane label="离退休补发待遇信息" name="4">
                        <ep-table :data="tableData4" :pager="20">
                            <ep-table-column editor="text" name="aaa037" header="待遇项目名称"></ep-table-column>
                            <ep-table-column editor="text" name="aae041" header="享受开始年月"></ep-table-column>
                            <ep-table-column editor="text" name="aae042" header="享受结束年月"></ep-table-column>
                            <ep-table-column editor="text" name="bac063" header="补退发金额"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                    <el-tab-pane label="补缴信息" name="5">
                        <ep-table :data="tableData5" :pager="20">
                            <ep-table-column editor="text" header="待遇变更类型" name="aaa099"></ep-table-column>
                            <ep-table-column editor="text" header="变更年月" name="aae002"></ep-table-column>
                            <ep-table-column editor="text" header="变更原因" name="aae160"></ep-table-column>
                            <ep-table-column editor="text" header="经办时间" name="aae036"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                    <el-tab-pane label="待遇计算标准过程" name="6" >
                        <ep-table :data="tableData6" :pager="20">
                            <ep-table-column editor="text" name="eia004" header="规则编码"></ep-table-column>
                            <ep-table-column editor="text" name="eia005" header="规则名称"></ep-table-column>
                            <ep-table-column editor="text" name="aaa036" header="待遇项目"></ep-table-column>
                            <ep-table-column editor="text" name="aaa037" header="待遇项目名称"></ep-table-column>
                            <ep-table-column editor="text" name="eia008" header="待遇计算值"></ep-table-column>
                            <ep-table-column editor="text" name="eia016" header="待遇计算依据"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                </el-tabs>
            </el-card>
        </el-main>
    </el-main>
</template>
<script type="es6">
    export default {
        data() {
            return {
                form:{
                    aic160: {
                        value: '',
                        p: 'R'
                    },
                    aae146: {
                        key: '',
                        value: '',
                        p: 'R'
                    },
                    ljnx: {
                        value: '',
                        p: 'D'
                    },
                    aae160: {
                        key: '',
                        value: '',
                        p: 'R'
                    },
                    aae201: {
                        value: '',
                        p: 'D'
                    },
                    aae200: {
                        value: '',
                        p: 'D'
                    },
                    aae165: {
                        value: '',
                        p: 'D'
                    },
                    aae201: {
                        value: '',
                        p: 'D'
                    },
                    aae200: {
                        value: '',
                        p: 'D'
                    },
                    aic167: {
                        value: '',
                        p: 'D'
                    },
                    aic166: {
                        value: '',
                        p: 'D'
                    },
                    bic119: {
                        key: '',
                        value: '',
                        p: 'R'
                    },
                    bic121: {
                        key: '',
                        value: '',
                        p: 'R'
                    },
                    bic120: {
                        key: '',
                        value: '',
                        p: 'R'
                    },
                    bic126: {
                        value: '',
                        p: 'D'
                    },
                    bic122: {
                        value: '',
                        p: 'R'
                    },
                    bic123: {
                        value: '',
                        p: 'R'
                    },
                    bic124: {
                        value: '',
                        p: 'R'
                    },
                    bic125: {
                        value: '',
                        p: 'R'
                    },
                    aae007: {
                        value: '',
                        p: 'R'
                    },
                    bic127: {
                        value: '',
                        p: 'R'
                    },
                    aae004: {
                        value: '',
                        p: 'R'
                    },
                    aae005: {
                        value: '',
                        p: 'R'
                    },
                    aae006: {
                        value: '',
                        p: 'R'
                    },
                    aae145: {
                        key: '',
                        value: '',
                        p: 'R'
                    },
                    aaz065: {
                        key: '',
                        value: '',
                        p: 'R'
                    },
                    aae010: {
                        value: '',
                        p: 'R'
                    },
                    aaf002: {
                        value: '',
                        p: 'R'
                    },
                    aae010: {
                        value: '',
                        p: 'R'
                    },
                    bac049: {
                        value: '',
                        p: 'R'
                    },
                    xbfylj: {
                        value: '',
                        p: 'D'
                    },
                    xbfa1: {
                        value: '',
                        p: 'D'
                    },
                    xbfgrylj: {
                        value: '',
                        p: 'D'
                    },
                    xbfa2: {
                        value: '',
                        p: 'D'
                    },
                    xbfgdylj: {
                        value: '',
                        p: 'D'
                    },
                    xbfa3: {
                        value: '',
                        p: 'D'
                    },
                    xbfyylj: {
                        value: '',
                        p: 'D'
                    },
                    lbfylj: {
                        value: '',
                        p: 'D'
                    },
                    lbfa1: {
                        value: '',
                        p: 'D'
                    },
                    lbfgrylj: {
                        value: '',
                        p: 'D'
                    },
                    lbfa2: {
                        value: '',
                        p: 'D'
                    },
                    lbfgdylj: {
                        value: '',
                        p: 'D'
                    },
                    lbfa3: {
                        value: '',
                        p: 'D'
                    },
                    lbfyylj: {
                        value: '',
                        p: 'D'
                    },
                    xlbdylj: {
                        value: '',
                        p: 'D'
                    },
                    xlbda1: {
                        value: '',
                        p: 'D'
                    },
                    xlbdtjj: {
                        value: '',
                        p: 'D'
                    },
                    xlbda2: {
                        value: '',
                        p: 'D'
                    },
                    xlbdyfylj: {
                        value: '',
                        p: 'D'
                    },
                    xlbda3: {
                        value: '',
                        p: 'D'
                    },
                    dnzdylj: {
                        value: '',
                        p: 'D'
                    },
                    dnzda1: {
                        value: '',
                        p: 'D'
                    },
                    yhdylj: {
                        value: '',
                        p: 'D'
                    },
                    yhda2: {
                        value: '',
                        p: 'D'
                    },
                    aic169:{
                        value:''
                    },
                    bac062:{
                        value:''
                    },
                    bac063:{
                        value:''
                    }

                },
                activeName2: '1',
                tableData1: {},
                tableData2: {},
                tableData3: {},
                tableData4: {},
                tableData5: {},
                tableData6: {},
                panel: {},

                rules:{
                    aic160: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    aae146: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    aae160: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    bic119: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    bic121: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    bic120: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    bic122: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    bic123: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    bic124: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    bic125: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    aae007: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    bic127: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    aae004: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    aae005: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    aae006: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    aae145: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    aaz065: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    aae010: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    aaf002: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    aae010: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],
                    bac049: [
                        {required: true, validator: this.$rules.test_noBlank, trigger: 'blur'}

                    ],

                },
                codeTypes:{
                    AAE146:[],
                    AAE145:[],
                    BIC119:[],
                    BIC121:[],
                    BIC120:[],
                    AAZ065:[],

                },
                codeTypeFilters:{

                },
                pager: {
                    page: 1,
                    size: 10
                },
                total: 0,
            }
        },
        computed: {
            functionId() {
                if (this.$store.getters.init.path !== this.$route.path) return;
                if (this.$store.getters.init.mdParam === null || this.$store.getters.init.mdParam === undefined) return;
                if (this.$store.getters.init.mdParam.functionid === undefined) return;
                return this.$store.getters.init.mdParam.functionid;
            },
            backFun() {
                return this.$store.getters.backFun;
            },
            init_formData() {
                if (this.$store.getters.init.path !== this.$route.path)  return;
                return this.$store.getters.init.form;
            },
            doInitformData: {
                get: function () {
                    if (this.$store.getters.common === null) return [];
                    if (this.$store.getters.common.path !== this.$route.path) return;
                    return this.$store.getters.common.formData;
                },
                set: function (newValue) {
                    if (newValue.path !== this.$route.path) return;
                    return newValue;
                }
            },
            init_panel() {
                if (this.$store.getters.init.path !== this.$route.path)  return;
                return this.$store.getters.init.panel;
            },
            doInitpanel: {
                get: function () {
                    if (this.$store.getters.common === null) return [];
                    if (this.$store.getters.common.path !== this.$route.path) return;
                    return this.$store.getters.common.panel;
                },
                set: function (newValue) {
                    if (newValue.path !== this.$route.path) return;
                    return newValue;
                }
            },
            init_tableData1() {
                return this.$store.getters.init.tableData1;
            },
            doInittableData1: {
                get: function () {
                    if (this.$store.getters.common === null) return [];
                    if (this.$store.getters.common.path !== this.$route.path) return;
                    return this.$store.getters.common.tableData1;
                },
                set: function (newValue) {
                    if (newValue.path !== this.$route.path) return;
                    return newValue;
                }
            },
            init_tableData2() {
                return this.$store.getters.init.tableData2;
            },
            doInittableData2: {
                get: function () {
                    if (this.$store.getters.common === null) return [];
                    if (this.$store.getters.common.path !== this.$route.path) return;
                    return this.$store.getters.common.tableData2;
                },
                set: function (newValue) {
                    if (newValue.path !== this.$route.path) return;
                    return newValue;
                }
            },
            init_tableData3() {
                return this.$store.getters.init.tableData3;
            },
            doInittableData3: {
                get: function () {
                    if (this.$store.getters.common === null) return [];
                    if (this.$store.getters.common.path !== this.$route.path) return;
                    return this.$store.getters.common.tableData3;
                },
                set: function (newValue) {
                    if (newValue.path !== this.$route.path) return;
                    return newValue;
                }
            },
            init_tableData4() {
                return this.$store.getters.init.tableData4;
            },
            doInittableData4: {
                get: function () {
                    if (this.$store.getters.common === null) return [];
                    if (this.$store.getters.common.path !== this.$route.path) return;
                    return this.$store.getters.common.tableData4;
                },
                set: function (newValue) {
                    if (newValue.path !== this.$route.path) return;
                    return newValue;
                }
            },
            init_tableData5() {
                return this.$store.getters.init.tableData5;
            },
            doInittableData5: {
                get: function () {
                    if (this.$store.getters.common === null) return [];
                    if (this.$store.getters.common.path !== this.$route.path) return;
                    return this.$store.getters.common.tableData5;
                },
                set: function (newValue) {
                    if (newValue.path !== this.$route.path) return;
                    return newValue;
                }
            },
            init_tableData6() {
                return this.$store.getters.init.tableData6;
            },
            doInittableData6: {
                get: function () {
                    if (this.$store.getters.common === null) return [];
                    if (this.$store.getters.common.path !== this.$route.path) return;
                    return this.$store.getters.common.tableData6;
                },
                set: function (newValue) {
                    if (newValue.path !== this.$route.path) return;
                    return newValue;
                }
            },

        },
        created() {
            let param = {
                path: this.$route.path,
                codeTypes:this.codeTypes,
                codeTypeFilters: window.btoa(JSON.stringify(this.codeTypeFilters)),
                form:this.form,
                tableData1:this.tableData1,
                tableData2:this.tableData2,
                tableData3:this.tableData3,
                tableData4:this.tableData4,
                tableData5:this.tableData5,
                tableData6:this.tableData6,
                panel:this.panel

            };
            if (this.$route.query.keepAlive === undefined) {
                this.$store.dispatch('SET_INIT', param);
            }
        },
        watch: {
            init_formData: {
                handler(value) {
                    if (value == undefined) return;
                    this.getformData(value);
                },
                deep: true
            },
            doInitformData: {
                handler(value) {
                    if (value == undefined) return;
                    this.getformData(value);
                },
                deep: true
            },
            doInittableData1: {
                handler(value) {
                    if (value == undefined) return;
                    this.gettableData1(value);
                },
                deep: true
            },
            init_panel: {
                handler(value) {
                    if (value == undefined) return;
                    this.getpanel(value);
                },
                deep: true
            },
            doInitpanel: {
                handler(value) {
                    if (value == undefined) return;
                    this.getpanel(value);
                },
                deep: true
            },
            doInittableData2: {
                handler(value) {
                    if (value == undefined) return;
                    this.gettableData2(value);
                },
                deep: true
            },
            doInittableData3: {
                handler(value) {
                    if (value == undefined) return;
                    this.gettableData3(value);
                },
                deep: true
            },
            doInittableData4: {
                handler(value) {
                    if (value == undefined) return;
                    this.gettableData4(value);
                },
                deep: true
            },
            doInittableData5: {
                handler(value) {
                    if (value == undefined) return;
                    this.gettableData5(value);
                },
                deep: true
            },
            doInittableData6: {
                handler(value) {
                    if (value == undefined) return;
                    this.gettableData6(value);
                },
                deep: true
            },

            backFun: {
                handler(value) {
                    if (value === null) return;
                    this.customBackFun();
                    let backFun = [];
                    backFun = value.split(',');
                    if (backFun.indexOf('rDoInit') >= 0) {
                        let codeTypes = {
                            AAE146:[],
                            AAE145:[],
                            BIC119:[],
                            BIC121:[],
                            BIC120:[],
                            AAZ065:[],

                        };
                        let form = {
                            aic160: {
                                value: '',
                                p: 'R'
                            },
                            aae146: {
                                key: '',
                                value: '',
                                p: 'R'
                            },
                            ljnx: {
                                value: '',
                                p: 'D'
                            },
                            aae160: {
                                key: '',
                                value: '',
                                p: 'R'
                            },
                            aae201: {
                                value: '',
                                p: 'D'
                            },
                            aae200: {
                                value: '',
                                p: 'D'
                            },
                            aae165: {
                                value: '',
                                p: 'D'
                            },
                            aae201: {
                                value: '',
                                p: 'D'
                            },
                            aae200: {
                                value: '',
                                p: 'D'
                            },
                            aic167: {
                                value: '',
                                p: 'D'
                            },
                            aic166: {
                                value: '',
                                p: 'D'
                            },
                            bic119: {
                                key: '',
                                value: '',
                                p: 'R'
                            },
                            bic121: {
                                key: '',
                                value: '',
                                p: 'R'
                            },
                            bic120: {
                                key: '',
                                value: '',
                                p: 'R'
                            },
                            bic126: {
                                value: '',
                                p: 'D'
                            },
                            bic122: {
                                value: '',
                                p: 'R'
                            },
                            bic123: {
                                value: '',
                                p: 'R'
                            },
                            bic124: {
                                value: '',
                                p: 'R'
                            },
                            bic125: {
                                value: '',
                                p: 'R'
                            },
                            aae007: {
                                value: '',
                                p: 'R'
                            },
                            bic127: {
                                value: '',
                                p: 'R'
                            },
                            aae004: {
                                value: '',
                                p: 'R'
                            },
                            aae005: {
                                value: '',
                                p: 'R'
                            },
                            aae006: {
                                value: '',
                                p: 'R'
                            },
                            aae145: {
                                key: '',
                                value: '',
                                p: 'R'
                            },
                            aaz065: {
                                key: '',
                                value: '',
                                p: 'R'
                            },
                            aae010: {
                                value: '',
                                p: 'R'
                            },
                            aaf002: {
                                value: '',
                                p: 'R'
                            },
                            aae010: {
                                value: '',
                                p: 'R'
                            },
                            bac049: {
                                value: '',
                                p: 'R'
                            },
                            xbfylj: {
                                value: '',
                                p: 'D'
                            },
                            xbfa1: {
                                value: '',
                                p: 'D'
                            },
                            xbfgrylj: {
                                value: '',
                                p: 'D'
                            },
                            xbfa2: {
                                value: '',
                                p: 'D'
                            },
                            xbfgdylj: {
                                value: '',
                                p: 'D'
                            },
                            xbfa3: {
                                value: '',
                                p: 'D'
                            },
                            xbfyylj: {
                                value: '',
                                p: 'D'
                            },
                            lbfylj: {
                                value: '',
                                p: 'D'
                            },
                            lbfa1: {
                                value: '',
                                p: 'D'
                            },
                            lbfgrylj: {
                                value: '',
                                p: 'D'
                            },
                            lbfa2: {
                                value: '',
                                p: 'D'
                            },
                            lbfgdylj: {
                                value: '',
                                p: 'D'
                            },
                            lbfa3: {
                                value: '',
                                p: 'D'
                            },
                            lbfyylj: {
                                value: '',
                                p: 'D'
                            },
                            xlbdylj: {
                                value: '',
                                p: 'D'
                            },
                            xlbda1: {
                                value: '',
                                p: 'D'
                            },
                            xlbdtjj: {
                                value: '',
                                p: 'D'
                            },
                            xlbda2: {
                                value: '',
                                p: 'D'
                            },
                            xlbdyfylj: {
                                value: '',
                                p: 'D'
                            },
                            xlbda3: {
                                value: '',
                                p: 'D'
                            },
                            dnzdylj: {
                                value: '',
                                p: 'D'
                            },
                            dnzda1: {
                                value: '',
                                p: 'D'
                            },
                            yhdylj: {
                                value: '',
                                p: 'D'
                            },
                            yhda2: {
                                value: '',
                                p: 'D'
                            },
                            aic169:{
                                value:''
                            },
                            bac062:{
                                value:''
                            },
                            bac063:{
                                value:''
                            }

                        };
                        let tableData1= {};
                        let tableData2= {};
                        let tableData3= {};
                        let tableData4= {};
                        let tableData5= {};
                        let tableData6= {};
                        let panel= {};

                        let param = {
                            path: this.$route.path,
                            codeTypes:codeTypes,
                            codeTypeFilters: window.btoa(JSON.stringify(this.codeTypeFilters)),
                            form:form,
                            tableData1:tableData1,
                            tableData2:tableData2,
                            tableData3:tableData3,
                            tableData4:tableData4,
                            tableData5:tableData5,
                            tableData6:tableData6,
                            panel:panel

                        };
                        this.$store.dispatch('SET_INIT', param);
                    }
                }
            }
        },
        mounted() {
            if (this.$store.getters.cacheData === null) return;
            if (this.$store.getters.cacheData[this.$route.path] === undefined)  return;
            if (this.$store.getters.cacheData[this.$route.path].path !== this.$route.path) return;
            if (this.$store.getters.cacheData[this.$route.path].form !== undefined) {
                this.getformData(this.$store.getters.cacheData[this.$route.path].form);
            }
            if (this.$store.getters.cacheData[this.$route.path].tableData1 !== undefined) {
                this.gettableData1(this.$store.getters.cacheData[this.$route.path].tableData1);
            }
            if (this.$store.getters.cacheData[this.$route.path].panel !== undefined) {
                this.getpanel(this.$store.getters.cacheData[this.$route.path].panel);
            }
            if (this.$store.getters.cacheData[this.$route.path].tableData2 !== undefined) {
                this.gettableData2(this.$store.getters.cacheData[this.$route.path].tableData2);
            }
            if (this.$store.getters.cacheData[this.$route.path].tableData3 !== undefined) {
                this.gettableData3(this.$store.getters.cacheData[this.$route.path].tableData3);
            }
            if (this.$store.getters.cacheData[this.$route.path].tableData4 !== undefined) {
                this.gettableData4(this.$store.getters.cacheData[this.$route.path].tableData4);
            }
            if (this.$store.getters.cacheData[this.$route.path].tableData5 !== undefined) {
                this.gettableData5(this.$store.getters.cacheData[this.$route.path].tableData5);
            }
            if (this.$store.getters.cacheData[this.$route.path].tableData6 !== undefined) {
                this.gettableData6(this.$store.getters.cacheData[this.$route.path].tableData6);
            }

        },
        beforeRouteLeave(to, from, next) {
            let param = {
                path: this.$route.path,
                codeTypes: this.$store.getters.codeTypes,
                codeTypeFilters: window.btoa(JSON.stringify(this.codeTypeFilters)),
                form:this.form,
                tableData1:this.tableData1,
                tableData2:this.tableData2,
                tableData3:this.tableData3,
                tableData4:this.tableData4,
                tableData5:this.tableData5,
                tableData6:this.tableData6,
                panel:this.panel

            };
            if (from) {
                this.$store.dispatch('SET_CACHEDATA', param);
            }
            next();
        },
        methods: {
            getformData(value) {
                this.form = value;
            },
            gettableData1(value) {
                this.tableData1 = value;
            },
            getpanel(value) {
                this.panel = value;
            },
            gettableData2(value) {
                this.tableData2 = value;
            },
            gettableData3(value) {
                this.tableData3 = value;
            },
            gettableData4(value) {
                this.tableData4 = value;
            },
            gettableData5(value) {
                this.tableData5 = value;
            },
            gettableData6(value) {
                this.tableData6 = value;
            },


            handleSizeChange(val) {
                console.log(`每页 ${val} 条`);
            },
            handleCurrentChange(val) {
                console.log(`当前页: ${val}`);
            },
            handleEdit(id) {
                this.dialogFormVisible = true;
            },
            formValidate(value){
                if(value && value.length>0){
                    let btn = true;
                    value.forEach((item,index)=>{
                        if(!btn) return
                        this.$refs[item].validate((valid) => {
                            if (valid) {
                                btn = true;
                            } else {
                                btn = false;
                            }
                        });
                    })
                    if(btn) this.$refs.save.btn();
                }
            },

            customBackFun(){//自定义方法体
            },
        },
    }

</script>
